import React, { Component } from 'react';
import Tabbar from '../../hoc/home';
import connect from '../../connect';
import store from '../../store';
import Lists from './list';

class Cinema extends Component {

    // 生命周期放置请求
    componentDidMount(){
        console.log("VIDEO",this.props.getVideoArr())
        console.log(store.getState().videoArr);
    }

    render() {
        return (
            <div style={{paddingBottom:"70px"}}>
                <h1 style={{fontSize:"30px",textAlign:"center",fontWeight:"900"}}>影院</h1>
                {store.getState().videoArr.map(item=>(
                    <Lists key={item.cinemaId} {...item}/>
                ))}
            </div>
        );
    }
}

export default connect(Tabbar(Cinema));
